package com.gw.smscheck.service.sys;


import com.github.pagehelper.PageInfo;
import com.gw.smscheck.entity.sys.Department;
import com.gw.smscheck.entity.sys.DeptTreeGridModel;
import com.gw.smscheck.entity.sys.QueryResult;
import com.gw.smscheck.entity.sys.TreeModel;

import java.util.List;

public interface DepartmentService {

    public QueryResult<DeptTreeGridModel> findTreeDeptInfos(Department department) throws Exception;

    public List<TreeModel> findAllMenus(Department department) throws Exception;

    public Integer saveDepartment(Department department);

    public Integer updateDepartment(Department department);

    public Integer deleteDepartment(Integer id);

    public List<Department> queryDepartAll();

    public List<DeptTreeGridModel> getTreeGrid(Integer pId);

    public String getByDescribes(Department department);

    /**
     * 分页查询
     * @param department
     * @return
     */
    public List<Department> pageSelect(Department department);

    /**
     * 根据id查询
     * @param department
     * @return
     */
    public Department findById(Department department);
}
